<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/V_box_order.js此处编写
 -->
 <template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/mall/SkatingSummary.js";
import ViewGrid from "@/components/basic/viewT.vue";
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: "name",
        footer: "Foots",
        cnName: "滑校汇总",
        name: "Skating_summary",
        url: "/Small_statistic_skating_school/",
        sortName: "createDate",
        paginationSize: 99999999,
        paginationHide: true,
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { takeTime: "",payTypeName:'' },
      searchFormOptions: [
        [
          { title: "项目", field: "product_name", type: "like" },
          { field: 'takeTime', title: '选择日期', type: 'date', clearable:false}
        ],
      ],
      columns: [
        {
          field: "product_name",
          title: "项目",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "payType",
          title: "明细",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "sales_number",
          title: "销售数量",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "sales_amount",
          title: "销售金额",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "refund_number",
          title: "退款数量",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "refund_amount",
          title: "退款金额",
          type: "string",
          width: 120,
          align: "left",
        },
      ],
      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: "",
      },
    };
  },
};
export default vueParam;
</script>
